package com.xiaoshuidi.cloud.module.member.pojo.questionnaireinfo;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xiaoshuidi.cloud.framework.tenant.core.db.TenantBaseDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@TableName(value = "member_question", autoResultMap = true)
@KeySequence("member_question_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库，可不写。
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class MemberQuestion extends TenantBaseDO {
    private static final long serialVersionUID = -2821700765024935185L;


    @Schema(description = "主键")
    private Long id;

    @Schema(description = "题目名称")
    private String name;

    @Schema(description = "问卷ID")
    private Long questionnaireId;

    @Schema(description = "题目图片")
    private String image;

    @Schema(description = "是否必填1是0否")
    private Boolean must;

    @Schema(description = "问题类型1-单选题,2-多选题,3-填空题,4-单选填空题,5-图片题")
    private Integer type;

    @Schema(description = "可选数量")
    private Integer selectNum;
}
